package com.central.scheduler.plugin.task.datasource;

import com.central.scheduler.plugin.task.datasource.hive.HiveConnectionParam;
import com.central.scheduler.plugin.task.datasource.mysql.MysqlConnectionParam;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @author Tindy
 * @date 2021/12/23
 * @describe
 * The base model of connection param
 * <p>
 * {@link HiveConnectionParam}
 * {@link MysqlConnectionParam}
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class BaseConnectionParam implements ConnectionParam {

    protected String user;

    protected String password;

    protected String address;

    protected String database;

    protected String jdbcUrl;

    protected String other;

    protected String driver;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getJdbcUrl() {
        return jdbcUrl;
    }

    public void setJdbcUrl(String jdbcUrl) {
        this.jdbcUrl = jdbcUrl;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }
}
